<?php exit('404');?>
{include header}
<!-- ext.tpl-header($tpl) -->
<div class="content">
	<!-- ext.tpl-top($tpl) -->
	<div class="title">主题列表 ‧ {$tpl.count}个 ‧ <a href="javascript:SX.import()" class="red">导入主题</a> ‧ <a href="{url admin/compile}" class="red">重新编译模板</a></div>
	<!-- ext.tpl-list($tpl) -->
	<ul class="tpl">
	{foreach $tpl.list}
		<li>
			<div class="tpl-icon"><img src="{$item.icon}"/></div>
			<div class="tpl-info">
				<div class="tpl-name">{$item.name}</div>
				<div class="tpl-operate">
					{if $conf.tpl == $item.id}
					<span class="tpl-use">使用中</span>
					<!-- ext.tpl-operate1($item,$key) -->
					{else}
					<a class="tpl-btn" href="{url admin/tpl/install/$item.id}">使用</a><a href="{url admin/tpl/delete/$item.id}" class="tpl-btn bg-red" onclick="return SX.confirm(this,'确实要删除吗？删除不可恢复！')">删除</a>
					<!-- ext.tpl-operate2($item,$key) -->
					{/if}
					<a href="{url admin/tpl/download/$item.id}" download="{$item.id}.sx" class="tpl-btn bg-red">导出</a>
					<!-- ext.tpl-operate3($item,$key) -->
				</div>
			</div>
		</li>
	{/foreach}
	</ul>
	<!-- ext.tpl-bottom($tpl) -->
</div>
<!-- ext.tpl-footer($tpl) -->
{include footer}